package ext.tianma.model;

import wt.fc.ObjectReference;
import wt.fc.WTObject;

import com.ptc.windchill.annotations.metadata.ColumnProperties;
import com.ptc.windchill.annotations.metadata.GenAsPersistable;
import com.ptc.windchill.annotations.metadata.GeneratedProperty;
import com.ptc.windchill.annotations.metadata.PropertyConstraints;

/**
 * 类名: RDPBOMModel </br>
 * 包名: ext.tianma.model
 * 描述: RDPBOM操作，按照TMECOITEMModel模型拉一份类似模型，用于存储RDP操作数据
 * @author xucr
 * 创建时间: 2020年11月3日
 * 发布版本: V1.0
 */

@GenAsPersistable(superClass = WTObject.class, interfaces = {}, properties = {
	@GeneratedProperty(name = "status", type = String.class, javaDoc = "状况", columnProperties = @ColumnProperties(index = true), constraints = @PropertyConstraints(upperLimit = 50, required = false)),
	@GeneratedProperty(name = "rdpId", javaDoc = "RDP系统ID", type = String.class, constraints = @PropertyConstraints(required = true, upperLimit = 50), columnProperties = @ColumnProperties(index = true)),
    @GeneratedProperty(name = "ECOOperatingType", javaDoc = "变更类型", type = String.class, constraints = @PropertyConstraints(required = true, upperLimit = 100)),
    @GeneratedProperty(name = "ECOAffectedRef", javaDoc = "受影响对象", type = ObjectReference.class, constraints = @PropertyConstraints(required = true, upperLimit = 100), columnProperties = @ColumnProperties(index = true)),
    @GeneratedProperty(name = "ECOView", javaDoc = "受影响对象视图", type = String.class, constraints = @PropertyConstraints(required = true, upperLimit = 100)),
    @GeneratedProperty(name = "ECOPartNumber", javaDoc = "物料号", type = String.class, constraints = @PropertyConstraints(required = true, upperLimit = 100)),
    @GeneratedProperty(name = "ECODosage", javaDoc = "用量", type = String.class, constraints = @PropertyConstraints(required = false, upperLimit = 100)),
    @GeneratedProperty(name = "ECOLineNumber", javaDoc = "行号", type = String.class, constraints = @PropertyConstraints(required = false, upperLimit = 100)),
    @GeneratedProperty(name = "ECONewPartNumber", javaDoc = "新物料号", type = String.class, constraints = @PropertyConstraints(required = false, upperLimit = 100)),
    @GeneratedProperty(name = "ECONewDosage", javaDoc = "新用量", type = String.class, constraints = @PropertyConstraints(required = false, upperLimit = 100)),
    @GeneratedProperty(name = "ECONewLineNumber", javaDoc = "新行号", type = String.class, constraints = @PropertyConstraints(required = false, upperLimit = 100)),
    @GeneratedProperty(name = "ECOSubstituteNumber", javaDoc = "替代料号", type = String.class, constraints = @PropertyConstraints(required = false, upperLimit = 100)),
    @GeneratedProperty(name = "ECOSubstituteLineNmuber", javaDoc = "替代料行号", type = String.class, constraints = @PropertyConstraints(required = false, upperLimit = 100)),
    @GeneratedProperty(name = "ECOSubstituteDosage", javaDoc = "替代料用量", type = String.class, constraints = @PropertyConstraints(required = false, upperLimit = 100)),
    @GeneratedProperty(name = "ECONewSubstituteNumber", javaDoc = "新替代料号", type = String.class, constraints = @PropertyConstraints(required = false, upperLimit = 100)),
    @GeneratedProperty(name = "ECONewSubstituteLineNmuber", javaDoc = "新替代料行号", type = String.class, constraints = @PropertyConstraints(required = false, upperLimit = 100)),
    @GeneratedProperty(name = "ECONewSubstituteDosage", javaDoc = "新替代料用量", type = String.class, constraints = @PropertyConstraints(required = false, upperLimit = 100)),
	@GeneratedProperty(name = "creator", type = String.class, javaDoc = "数据创建者，RDP传输工号", columnProperties = @ColumnProperties(index = false), constraints = @PropertyConstraints(upperLimit = 100, required = false)),
	@GeneratedProperty(name = "str_1", type = String.class, javaDoc = "预留字段1", columnProperties = @ColumnProperties(index = false), constraints = @PropertyConstraints(required = false)),
	@GeneratedProperty(name = "str_2", type = String.class, javaDoc = "预留字段2", columnProperties = @ColumnProperties(index = false), constraints = @PropertyConstraints(required = false)),
	@GeneratedProperty(name = "str_3", type = String.class, javaDoc = "预留字段3", columnProperties = @ColumnProperties(index = false), constraints = @PropertyConstraints(required = false))
})

public class RDPBOMModel extends _RDPBOMModel{
	static final long serialVersionUID = 1;
	public static RDPBOMModel newRDPBOMModel()  {
		final RDPBOMModel instance = new RDPBOMModel();
		try {
			instance.initialize();
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
		return instance;
	}
}
